home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / dom / nsIDOMCSSStyleDeclaration.h < prev    next >
C/C++ Source or Header  |  2006-05-08  |  9KB  |  203 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsIDOMCSSStyleDeclaration.idl
  3.  */
  4.  
  5. #ifndef __gen_nsIDOMCSSStyleDeclaration_h__
  6. #define __gen_nsIDOMCSSStyleDeclaration_h__
  7.  
  8.  
  9. #ifndef __gen_domstubs_h__
  10. #include "domstubs.h"
  11. #endif
  12.  
  13. /* For IDL files that don't want to include root IDL files. */
  14. #ifndef NS_NO_VTABLE
  15. #define NS_NO_VTABLE
  16. #endif
  17.  
  18. /* starting interface:    nsIDOMCSSStyleDeclaration */
  19. #define NS_IDOMCSSSTYLEDECLARATION_IID_STR "a6cf90be-15b3-11d2-932e-00805f8add32"
  20.  
  21. #define NS_IDOMCSSSTYLEDECLARATION_IID \
  22.   {0xa6cf90be, 0x15b3, 0x11d2, \
  23.     { 0x93, 0x2e, 0x00, 0x80, 0x5f, 0x8a, 0xdd, 0x32 }}
  24.  
  25. class NS_NO_VTABLE nsIDOMCSSStyleDeclaration : public nsISupports {
  26.  public: 
  27.  
  28.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_IDOMCSSSTYLEDECLARATION_IID)
  29.  
  30.   /**
  31.  * The nsIDOMCSSStyleDeclaration interface is a datatype for a CSS
  32.  * style declaration in the Document Object Model.
  33.  *
  34.  * For more information on this interface please see
  35.  * http://www.w3.org/TR/DOM-Level-2-Style
  36.  *
  37.  * @status FROZEN
  38.  */
  39.   /* attribute DOMString cssText; */
  40.   NS_IMETHOD GetCssText(nsAString & aCssText) = 0;
  41.   NS_IMETHOD SetCssText(const nsAString & aCssText) = 0;
  42.  
  43.   /* DOMString getPropertyValue (in DOMString propertyName); */
  44.   NS_IMETHOD GetPropertyValue(const nsAString & propertyName, nsAString & _retval) = 0;
  45.  
  46.   /* nsIDOMCSSValue getPropertyCSSValue (in DOMString propertyName); */
  47.   NS_IMETHOD GetPropertyCSSValue(const nsAString & propertyName, nsIDOMCSSValue **_retval) = 0;
  48.  
  49.   /* DOMString removeProperty (in DOMString propertyName)  raises (DOMException); */
  50.   NS_IMETHOD RemoveProperty(const nsAString & propertyName, nsAString & _retval) = 0;
  51.  
  52.   /* DOMString getPropertyPriority (in DOMString propertyName); */
  53.   NS_IMETHOD GetPropertyPriority(const nsAString & propertyName, nsAString & _retval) = 0;
  54.  
  55.   /* void setProperty (in DOMString propertyName, in DOMString value, in DOMString priority)  raises (DOMException); */
  56.   NS_IMETHOD SetProperty(const nsAString & propertyName, const nsAString & value, const nsAString & priority) = 0;
  57.  
  58.   /* readonly attribute unsigned long length; */
  59.   NS_IMETHOD GetLength(PRUint32 *aLength) = 0;
  60.  
  61.   /* DOMString item (in unsigned long index); */
  62.   NS_IMETHOD Item(PRUint32 index, nsAString & _retval) = 0;
  63.  
  64.   /* readonly attribute nsIDOMCSSRule parentRule; */
  65.   NS_IMETHOD GetParentRule(nsIDOMCSSRule * *aParentRule) = 0;
  66.  
  67. };
  68.  
  69. /* Use this macro when declaring classes that implement this interface. */
  70. #define NS_DECL_NSIDOMCSSSTYLEDECLARATION \
  71.   NS_IMETHOD GetCssText(nsAString & aCssText); \
  72.   NS_IMETHOD SetCssText(const nsAString & aCssText); \
  73.   NS_IMETHOD GetPropertyValue(const nsAString & propertyName, nsAString & _retval); \
  74.   NS_IMETHOD GetPropertyCSSValue(const nsAString & propertyName, nsIDOMCSSValue **_retval); \
  75.   NS_IMETHOD RemoveProperty(const nsAString & propertyName, nsAString & _retval); \
  76.   NS_IMETHOD GetPropertyPriority(const nsAString & propertyName, nsAString & _retval); \
  77.   NS_IMETHOD SetProperty(const nsAString & propertyName, const nsAString & value, const nsAString & priority); \
  78.   NS_IMETHOD GetLength(PRUint32 *aLength); \
  79.   NS_IMETHOD Item(PRUint32 index, nsAString & _retval); \
  80.   NS_IMETHOD GetParentRule(nsIDOMCSSRule * *aParentRule); 
  81.  
  82. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  83. #define NS_FORWARD_NSIDOMCSSSTYLEDECLARATION(_to) \
  84.   NS_IMETHOD GetCssText(nsAString & aCssText) { return _to GetCssText(aCssText); } \
  85.   NS_IMETHOD SetCssText(const nsAString & aCssText) { return _to SetCssText(aCssText); } \
  86.   NS_IMETHOD GetPropertyValue(const nsAString & propertyName, nsAString & _retval) { return _to GetPropertyValue(propertyName, _retval); } \
  87.   NS_IMETHOD GetPropertyCSSValue(const nsAString & propertyName, nsIDOMCSSValue **_retval) { return _to GetPropertyCSSValue(propertyName, _retval); } \
  88.   NS_IMETHOD RemoveProperty(const nsAString & propertyName, nsAString & _retval) { return _to RemoveProperty(propertyName, _retval); } \
  89.   NS_IMETHOD GetPropertyPriority(const nsAString & propertyName, nsAString & _retval) { return _to GetPropertyPriority(propertyName, _retval); } \
  90.   NS_IMETHOD SetProperty(const nsAString & propertyName, const nsAString & value, const nsAString & priority) { return _to SetProperty(propertyName, value, priority); } \
  91.   NS_IMETHOD GetLength(PRUint32 *aLength) { return _to GetLength(aLength); } \
  92.   NS_IMETHOD Item(PRUint32 index, nsAString & _retval) { return _to Item(index, _retval); } \
  93.   NS_IMETHOD GetParentRule(nsIDOMCSSRule * *aParentRule) { return _to GetParentRule(aParentRule); } 
  94.  
  95. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  96. #define NS_FORWARD_SAFE_NSIDOMCSSSTYLEDECLARATION(_to) \
  97.   NS_IMETHOD GetCssText(nsAString & aCssText) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCssText(aCssText); } \
  98.   NS_IMETHOD SetCssText(const nsAString & aCssText) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetCssText(aCssText); } \
  99.   NS_IMETHOD GetPropertyValue(const nsAString & propertyName, nsAString & _retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPropertyValue(propertyName, _retval); } \
  100.   NS_IMETHOD GetPropertyCSSValue(const nsAString & propertyName, nsIDOMCSSValue **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPropertyCSSValue(propertyName, _retval); } \
  101.   NS_IMETHOD RemoveProperty(const nsAString & propertyName, nsAString & _retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveProperty(propertyName, _retval); } \
  102.   NS_IMETHOD GetPropertyPriority(const nsAString & propertyName, nsAString & _retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPropertyPriority(propertyName, _retval); } \
  103.   NS_IMETHOD SetProperty(const nsAString & propertyName, const nsAString & value, const nsAString & priority) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetProperty(propertyName, value, priority); } \
  104.   NS_IMETHOD GetLength(PRUint32 *aLength) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLength(aLength); } \
  105.   NS_IMETHOD Item(PRUint32 index, nsAString & _retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->Item(index, _retval); } \
  106.   NS_IMETHOD GetParentRule(nsIDOMCSSRule * *aParentRule) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetParentRule(aParentRule); } 
  107.  
  108. #if 0
  109. /* Use the code below as a template for the implementation class for this interface. */
  110.  
  111. /* Header file */
  112. class nsDOMCSSStyleDeclaration : public nsIDOMCSSStyleDeclaration
  113. {
  114. public:
  115.   NS_DECL_ISUPPORTS
  116.   NS_DECL_NSIDOMCSSSTYLEDECLARATION
  117.  
  118.   nsDOMCSSStyleDeclaration();
  119.  
  120. private:
  121.   ~nsDOMCSSStyleDeclaration();
  122.  
  123. protected:
  124.   /* additional members */
  125. };
  126.  
  127. /* Implementation file */
  128. NS_IMPL_ISUPPORTS1(nsDOMCSSStyleDeclaration, nsIDOMCSSStyleDeclaration)
  129.  
  130. nsDOMCSSStyleDeclaration::nsDOMCSSStyleDeclaration()
  131. {
  132.   /* member initializers and constructor code */
  133. }
  134.  
  135. nsDOMCSSStyleDeclaration::~nsDOMCSSStyleDeclaration()
  136. {
  137.   /* destructor code */
  138. }
  139.  
  140. /* attribute DOMString cssText; */
  141. NS_IMETHODIMP nsDOMCSSStyleDeclaration::GetCssText(nsAString & aCssText)
  142. {
  143.     return NS_ERROR_NOT_IMPLEMENTED;
  144. }
  145. NS_IMETHODIMP nsDOMCSSStyleDeclaration::SetCssText(const nsAString & aCssText)
  146. {
  147.     return NS_ERROR_NOT_IMPLEMENTED;
  148. }
  149.  
  150. /* DOMString getPropertyValue (in DOMString propertyName); */
  151. NS_IMETHODIMP nsDOMCSSStyleDeclaration::GetPropertyValue(const nsAString & propertyName, nsAString & _retval)
  152. {
  153.     return NS_ERROR_NOT_IMPLEMENTED;
  154. }
  155.  
  156. /* nsIDOMCSSValue getPropertyCSSValue (in DOMString propertyName); */
  157. NS_IMETHODIMP nsDOMCSSStyleDeclaration::GetPropertyCSSValue(const nsAString & propertyName, nsIDOMCSSValue **_retval)
  158. {
  159.     return NS_ERROR_NOT_IMPLEMENTED;
  160. }
  161.  
  162. /* DOMString removeProperty (in DOMString propertyName)  raises (DOMException); */
  163. NS_IMETHODIMP nsDOMCSSStyleDeclaration::RemoveProperty(const nsAString & propertyName, nsAString & _retval)
  164. {
  165.     return NS_ERROR_NOT_IMPLEMENTED;
  166. }
  167.  
  168. /* DOMString getPropertyPriority (in DOMString propertyName); */
  169. NS_IMETHODIMP nsDOMCSSStyleDeclaration::GetPropertyPriority(const nsAString & propertyName, nsAString & _retval)
  170. {
  171.     return NS_ERROR_NOT_IMPLEMENTED;
  172. }
  173.  
  174. /* void setProperty (in DOMString propertyName, in DOMString value, in DOMString priority)  raises (DOMException); */
  175. NS_IMETHODIMP nsDOMCSSStyleDeclaration::SetProperty(const nsAString & propertyName, const nsAString & value, const nsAString & priority)
  176. {
  177.     return NS_ERROR_NOT_IMPLEMENTED;
  178. }
  179.  
  180. /* readonly attribute unsigned long length; */
  181. NS_IMETHODIMP nsDOMCSSStyleDeclaration::GetLength(PRUint32 *aLength)
  182. {
  183.     return NS_ERROR_NOT_IMPLEMENTED;
  184. }
  185.  
  186. /* DOMString item (in unsigned long index); */
  187. NS_IMETHODIMP nsDOMCSSStyleDeclaration::Item(PRUint32 index, nsAString & _retval)
  188. {
  189.     return NS_ERROR_NOT_IMPLEMENTED;
  190. }
  191.  
  192. /* readonly attribute nsIDOMCSSRule parentRule; */
  193. NS_IMETHODIMP nsDOMCSSStyleDeclaration::GetParentRule(nsIDOMCSSRule * *aParentRule)
  194. {
  195.     return NS_ERROR_NOT_IMPLEMENTED;
  196. }
  197.  
  198. /* End of implementation class template. */
  199. #endif
  200.  
  201.  
  202. #endif /* __gen_nsIDOMCSSStyleDeclaration_h__ */
  203.